/*
-------------------------------------------------

	XML.h

	Dmitriy Kuzmenko (Dgut)

-------------------------------------------------
*/

#ifndef __AUTUMN_XML_H__
#define __AUTUMN_XML_H__

#include "Singleton.h"
#include "pugixml.hpp"

namespace Autumn
{

#define gXML XML::GetInstance()

class XML : public Singleton< XML >
{
								XML( void );
								~XML( void );
public:
	pugi::xml_document * const	Load( const char * name, bool magic = false );
	const bool					Save( pugi::xml_document * doc, const char * name, bool magic = false );

	friend class				Singleton< XML >;
};

}	// namespace Autumn

#endif	// !!! __AUTUMN_XML_H__ !!!